package cn.lizemin.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author lzm
 * @version 1.0
 * @description: TODO
 * @date 2022/1/9 11:57
 */
@Configuration
public class MvcConfig implements WebMvcConfigurer {
    //配置请求和页面视图映射
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/hello").setViewName("hello");


    }
}
